<?php
class word extends Model {
	
	/**
	 * 获取文档内容
	 */
	public function getword() {
		$sql = "select `word`.* from `word` where `id` = 1";
		return $this->fetchRow ( $sql );
	}
	
	/**
	 * 修改文档内容
	 * @param title,content       	
	 * @return bool
	 */
	public function updateWord($title, $content) {		
		$sql = "UPDATE `word` SET title='" . $title . "', content='". $content ."' WHERE `id` =1";
		return $this->update ( $sql );
	}
}